package items;

import java.util.ArrayList;

/*
 * Barrows brothers' items - sets only
 */
public enum Barrows {
	Ahrim("Barrows - ahrim's set", 11846),
	Akrisae("Barrows - akrisae's set;", 21768),
	Dharok("Barrows - dharok's set", 11848),
	Guthan("Barrows - guthan's set", 11850),
	Karil("Barrows - karil's set", 11852),
	Torag("Barrows - torag's set", 11854),
	Verac("Barrows - verac's set", 11856);
	
	public static final String group = "barrows";
	private String itemName;
	private int itemNumber;

	public int getItemNumber() {
		return itemNumber;
	}

	public void setItemNumber(int itemNumber) {
		this.itemNumber = itemNumber;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	Barrows(String itemName, int itemNumber) {
		this.setItemName(itemName);
		this.setItemNumber(itemNumber);
	}

	@Override
	public String toString() {
		Number string = getItemNumber();
		return string.toString();
	}
	
	public static boolean itemCategory(String category) {
		return category.equalsIgnoreCase("barrows") ? true : false;
	}
	
	public static ArrayList<String> itemNameList() {
		ArrayList<String> itemNameList = new ArrayList<String>();
		for(Barrows items : Barrows.values()) {
			itemNameList.add(items.getItemName());
		}
		return itemNameList;
	}
	
	public static ArrayList<String> itemNumberList() {
		ArrayList<String> itemNumberList = new ArrayList<String>();
		for(Barrows items : Barrows.values()) {
			itemNumberList.add(items.toString());
		}
		return itemNumberList;
	}
}
